package com.shxy.dao;

import com.shxy.entity.Retiree;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 退休人员访问接口
 */
@Repository
public interface RetireeDao extends JpaRepository<Retiree, Integer> {

    /**
     * 分页查询
     * @param pageable
     * @return
     */
    Page<Retiree> findAll(Pageable pageable);
}
